package Javatest4.test2;

public class method1 {
    public static void main(String[] args) {
        int n=0;
        for (int i = 0; i < 34; i++) {
            for (int j = 0; j < 50; j++) {
                for (int z = 0; z < 100; z++) {
                    if ((i + z + j == 100) && (3 * i + 2 * j + z / 2 == 100)) {
                        System.out.print("i = " + i);
                        System.out.print(" ");
                        System.out.print("j = " + j);
                        System.out.print(" ");
                        System.out.print("z = " + z);
                        System.out.print(" ");
                        System.out.println();
                        n++;

                    }
                }
            }
        }
        System.out.println("总共有"+n+"种方案");
    }
}
